package com.itheima.service.db;

import com.itheima.domain.PmsProductCategory;
import com.itheima.util.R;
import com.itheima.vo.PageBeanVo;
import com.itheima.vo.PmsProductCategoryVo;

import java.util.List;

public interface PmsProductCategoryService {

    //查询产品分类,两级
    PageBeanVo findByPage(Integer pageNum, Integer pageSize, Long parentId);

    void navStatus(Long[] ids, Integer navStatus);

    void showStatus(Long[] ids, Integer showStatus);

    PmsProductCategory selectById(Long id);

    PmsProductCategory create(PmsProductCategory pmsProductCategory);

    List<PmsProductCategory> findParents();

    List<PmsProductCategory> findByParentId(Long id);

    PmsProductCategory findbyId(Long id);

    void update(PmsProductCategory ppc);

    void delete(Long id);

    List<PmsProductCategoryVo> findAll();
}
